{"api_version":"1","generated_at":"2026-07-24T22:55:23+00:00","cve":"CVE-2010-3781","urls":{"html":"https://cve.report/CVE-2010-3781","api":"https://cve.report/api/cve/CVE-2010-3781.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2010-3781","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2010-3781"},"summary":{"title":"CVE-2010-3781","description":"The PL/php add-on 1.4 and earlier for PostgreSQL does not properly protect script execution by a different SQL user identity within the same session, which allows remote authenticated users to gain privileges via crafted script code in a SECURITY DEFINER function, a related issue to CVE-2010-3433.","state":"PUBLISHED","assigner":"mitre","published_at":"2010-10-06 21:00:01","updated_at":"2026-04-29 01:13:23"},"problem_types":["CWE-264","n/a"],"metrics":[{"version":"2.0","source":"nvd@nist.gov","type":"Primary","score":"6","severity":"","vector":"AV:N/AC:M/Au:S/C:P/I:P/A:P","data":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:P/A:P","baseScore":6,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"}}],"references":[{"url":"http://www.postgresql.org/docs/9.0/static/release-9-0-1.html","name":"http://www.postgresql.org/docs/9.0/static/release-9-0-1.html","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PostgreSQL: Documentation: Manuals: PostgreSQL 9.0: Release 9.0.1","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6645","name":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6645","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"Repository  /  Oval Repository","mime":"text/html","httpstatus":"200","archivestatus":"200"},{"url":"http://www.postgresql.org/about/news.1244","name":"http://www.postgresql.org/about/news.1244","refsource":"af854a3a-2127-422b-91ae-364da2661108","tags":[],"title":"PostgreSQL: \nNews: PostgreSQL 2010-10-05 Security Update","mime":"text/html","httpstatus":"404","archivestatus":"200"},{"url":"https://www.cve.org/CVERecord?id=CVE-2010-3781","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2010-3781","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"n/a","product":"n/a","version":"affected n/a","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.0","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.3.1","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.3.2","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.3.3","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"1.3.5","cpe7":"beta1","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"1","versionEndIncluding":"1.4","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"alvaro_herrera","cpe5":"pl\\/php","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"},{"cve_year":"2010","cve_id":"3781","vulnerable":"0","versionEndIncluding":"","cpe1":"cpe","cpe2":"2.3","cpe3":"a","cpe4":"postgresql","cpe5":"postgresql","cpe6":"*","cpe7":"*","cpe8":"*","cpe9":"*","cpe10":"*","cpe11":"*","cpe12":"*","cpe13":"*"}],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"adp":[{"providerMetadata":{"dateUpdated":"2024-08-07T03:18:53.195Z","orgId":"af854a3a-2127-422b-91ae-364da2661108","shortName":"CVE"},"references":[{"name":"oval:org.mitre.oval:def:6645","tags":["vdb-entry","signature","x_refsource_OVAL","x_transferred"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6645"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://www.postgresql.org/docs/9.0/static/release-9-0-1.html"},{"tags":["x_refsource_MISC","x_transferred"],"url":"http://www.postgresql.org/about/news.1244"}],"title":"CVE Program Container"}],"cna":{"affected":[{"product":"n/a","vendor":"n/a","versions":[{"status":"affected","version":"n/a"}]}],"datePublic":"2010-10-05T00:00:00.000Z","descriptions":[{"lang":"en","value":"The PL/php add-on 1.4 and earlier for PostgreSQL does not properly protect script execution by a different SQL user identity within the same session, which allows remote authenticated users to gain privileges via crafted script code in a SECURITY DEFINER function, a related issue to CVE-2010-3433."}],"problemTypes":[{"descriptions":[{"description":"n/a","lang":"en","type":"text"}]}],"providerMetadata":{"dateUpdated":"2017-09-18T12:57:01.000Z","orgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","shortName":"mitre"},"references":[{"name":"oval:org.mitre.oval:def:6645","tags":["vdb-entry","signature","x_refsource_OVAL"],"url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6645"},{"tags":["x_refsource_MISC"],"url":"http://www.postgresql.org/docs/9.0/static/release-9-0-1.html"},{"tags":["x_refsource_MISC"],"url":"http://www.postgresql.org/about/news.1244"}],"x_legacyV4Record":{"CVE_data_meta":{"ASSIGNER":"cve@mitre.org","ID":"CVE-2010-3781","STATE":"PUBLIC"},"affects":{"vendor":{"vendor_data":[{"product":{"product_data":[{"product_name":"n/a","version":{"version_data":[{"version_value":"n/a"}]}}]},"vendor_name":"n/a"}]}},"data_format":"MITRE","data_type":"CVE","data_version":"4.0","description":{"description_data":[{"lang":"eng","value":"The PL/php add-on 1.4 and earlier for PostgreSQL does not properly protect script execution by a different SQL user identity within the same session, which allows remote authenticated users to gain privileges via crafted script code in a SECURITY DEFINER function, a related issue to CVE-2010-3433."}]},"problemtype":{"problemtype_data":[{"description":[{"lang":"eng","value":"n/a"}]}]},"references":{"reference_data":[{"name":"oval:org.mitre.oval:def:6645","refsource":"OVAL","url":"https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6645"},{"name":"http://www.postgresql.org/docs/9.0/static/release-9-0-1.html","refsource":"MISC","url":"http://www.postgresql.org/docs/9.0/static/release-9-0-1.html"},{"name":"http://www.postgresql.org/about/news.1244","refsource":"MISC","url":"http://www.postgresql.org/about/news.1244"}]}}}},"cveMetadata":{"assignerOrgId":"8254265b-2729-46b6-b9e3-3dfca2d5bfca","assignerShortName":"mitre","cveId":"CVE-2010-3781","datePublished":"2010-10-06T20:00:00.000Z","dateReserved":"2010-10-06T00:00:00.000Z","dateUpdated":"2024-08-07T03:18:53.195Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.1"},"nvd":{"publishedDate":"2010-10-06 21:00:01","lastModifiedDate":"2026-04-29 01:13:23","problem_types":["CWE-264","n/a"],"metrics":{"cvssMetricV2":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"2.0","vectorString":"AV:N/AC:M/Au:S/C:P/I:P/A:P","baseScore":6,"accessVector":"NETWORK","accessComplexity":"MEDIUM","authentication":"SINGLE","confidentialityImpact":"PARTIAL","integrityImpact":"PARTIAL","availabilityImpact":"PARTIAL"},"baseSeverity":"MEDIUM","exploitabilityScore":6.8,"impactScore":6.4,"acInsufInfo":false,"obtainAllPrivilege":false,"obtainUserPrivilege":false,"obtainOtherPrivilege":true,"userInteractionRequired":false}]},"configurations":[{"operator":"AND","nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:*:*:*:*:*:*:*:*","versionEndIncluding":"1.4","matchCriteriaId":"348D5331-ECC6-4E02-8297-663F09311F8B"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.0:*:*:*:*:*:*:*","matchCriteriaId":"82763B21-180E-4820-91AA-9475E535D9AE"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.1:*:*:*:*:*:*:*","matchCriteriaId":"35B237D7-2059-4BD0-BE8D-65E93180360B"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.2:*:*:*:*:*:*:*","matchCriteriaId":"90B0A478-57CF-4BF2-B6D5-2D55259A5300"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.3.1:*:*:*:*:*:*:*","matchCriteriaId":"962A3D30-7C0D-489F-896E-7718FB1A927F"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.3.2:*:*:*:*:*:*:*","matchCriteriaId":"16F6ADAE-8DE8-46AB-BF15-CE0948305ABE"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.3.3:*:*:*:*:*:*:*","matchCriteriaId":"82F0F4C7-5404-4D53-8B56-42F38E96FC19"},{"vulnerable":true,"criteria":"cpe:2.3:a:alvaro_herrera:pl\\/php:1.3.5:beta1:*:*:*:*:*:*","matchCriteriaId":"0B349755-B641-4C9C-907C-4C83C4D6E64F"}]},{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":false,"criteria":"cpe:2.3:a:postgresql:postgresql:*:*:*:*:*:*:*:*","matchCriteriaId":"E5A47A8B-5F2B-42B1-A8F6-ACDBEA4D8485"}]}]}]},"legacy_mitre":{"record":{"CveYear":"2010","CveId":"3781","Ordinal":"1","Title":"CVE-2010-3781","CVE":"CVE-2010-3781","Year":"2010"},"notes":[{"CveYear":"2010","CveId":"3781","Ordinal":"1","NoteData":"The PL/php add-on 1.4 and earlier for PostgreSQL does not properly protect script execution by a different SQL user identity within the same session, which allows remote authenticated users to gain privileges via crafted script code in a SECURITY DEFINER function, a related issue to CVE-2010-3433.","Type":"Description","Title":"CVE-2010-3781"},{"CveYear":"2010","CveId":"3781","Ordinal":"2","NoteData":"2010-10-06","Type":"Other","Title":"Published"},{"CveYear":"2010","CveId":"3781","Ordinal":"3","NoteData":"2017-09-18","Type":"Other","Title":"Modified"}]}}}