{"schemaVersion":3,"id":"CVE-2025-14179","aliases":["UBUNTU-CVE-2025-14179","DEBIAN-CVE-2025-14179","CGA-rv7q-5wx3-34gq","CGA-xr7x-wm2v-h77x"],"status":"published","duplicateOf":null,"title":null,"description":"In PHP versions 8.2.* before 8.2.31, 8.3.* before 8.3.31, 8.4.* before 8.4.21, and 8.5.* before 8.5.6, the PDO Firebird driver improperly handles NUL bytes when preparing SQL queries. During token-by-token query construction, a string token containing a NUL byte is copied via strncat(), which stops at the NUL byte, dropping the closing quote and causing subsequent SQL tokens to be interpreted as part of the string. This allows SQL injection when attacker-controlled values are quoted via PDO::quote() and embedded in SQL statements.","dates":{"published":"2026-05-10T03:51:14.596Z","modified":"2026-07-15T01:27:20.859Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":9.8,"severity":"critical","version":"3.1","versionLabel":"v3.1","source":"NVD","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"4.0","versionLabel":"v4.0","source":"CVE.org","score":7.4,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/AU:Y/RE:M/U:Amber","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":8.1,"severity":"high","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false},{"version":"4.0","versionLabel":"v4.0","source":"OSV · Ubuntu","score":8.9,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/AU:Y/RE:M/U:Amber","exploitability":null,"impact":null,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Ubuntu","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"3.1","versionLabel":"v3.1","source":"OSV · Debian","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":10,"impact":9.8,"computed":true},{"version":"4.0","versionLabel":"v4.0","source":"NVD","score":7.4,"severity":"high","vector":"CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:A/VC:H/VI:H/VA:H/SC:H/SI:H/SA:H/E:P/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:Y/R:X/V:X/RE:M/U:Amber","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":9.8,"severity":"critical","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00439,"percentile":0.36812,"severity":"low","asOf":"2026-10-20T00:00:00.000Z","change":{"pp":0,"baselineDate":"2026-09-20T00:00:00.000Z","baselineScore":0.00439},"history":[{"date":"2026-09-14T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-15T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-16T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-17T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-18T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-19T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-20T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00439,"percentile":0.36812}],"last30":[{"date":"2026-09-20T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-21T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-22T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-23T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-24T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-25T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-26T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-27T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-28T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-29T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-09-30T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-01T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-02T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-03T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-04T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-05T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-06T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-07T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-08T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-09T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-10T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-11T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-12T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-13T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-14T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-15T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-16T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-17T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-18T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-19T00:00:00.000Z","score":0.00439,"percentile":null},{"date":"2026-10-20T00:00:00.000Z","score":0.00439,"percentile":0.36812}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","description":"The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.","type":"weakness","status":"Stable","abstraction":"Base","likelihoodOfExploit":"High","url":"https://cwe.mitre.org/data/definitions/89.html"}],"affected":[{"vendor":"chainguard","product":"php-8.2","name":"php-8.2","label":"php-8.2","ecosystem":"Chainguard","cpePart":null,"purl":"pkg:apk/chainguard/php-8.2","purlType":"apk","versions":[{"text":"< 8.2.31-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.2.31-r0","eol":null,"hubHref":null},{"vendor":"wolfi","product":"php-8.2","name":"php-8.2","label":"php-8.2","ecosystem":"Wolfi","cpePart":null,"purl":"pkg:apk/wolfi/php-8.2","purlType":"apk","versions":[{"text":"< 8.2.31-r0","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.2.31-r0","eol":null,"hubHref":null},{"vendor":"debian","product":"php8.2","name":"php8.2","label":"php8.2","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php8.2","purlType":"deb","versions":[{"text":"< 8.2.31-1~deb12u1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.2.31-1~deb12u1","eol":null,"hubHref":null},{"vendor":"debian","product":"php8.4","name":"php8.4","label":"php8.4","ecosystem":"Debian","cpePart":null,"purl":"pkg:deb/debian/php8.4","purlType":"deb","versions":[{"text":"< 8.4.21-1~deb13u1","noFixRecorded":false,"fixedIn":null},{"text":"< 8.4.21-1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.4.21-1~deb13u1 | < 8.4.21-1","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php5","name":"php5","label":"php5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php5","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php7.0","name":"php7.0","label":"php7.0","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php7.0","purlType":"deb","versions":[{"text":"< 7.0.33-0ubuntu0.16.04.16+esm19","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 7.0.33-0ubuntu0.16.04.16+esm19","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php7.2","name":"php7.2","label":"php7.2","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php7.2","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php7.4","name":"php7.4","label":"php7.4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php7.4","purlType":"deb","versions":[{"text":"All versions","noFixRecorded":true,"fixedIn":null}],"versionsText":"All versions (No fix recorded)","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php8.1","name":"php8.1","label":"php8.1","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php8.1","purlType":"deb","versions":[{"text":"< 8.1.2-1ubuntu2.24","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.1.2-1ubuntu2.24","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php8.3","name":"php8.3","label":"php8.3","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php8.3","purlType":"deb","versions":[{"text":"< 8.3.6-0ubuntu0.24.04.9","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.3.6-0ubuntu0.24.04.9","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php8.4","name":"php8.4","label":"php8.4","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php8.4","purlType":"deb","versions":[{"text":"< 8.4.11-1ubuntu1.2","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.4.11-1ubuntu1.2","eol":null,"hubHref":null},{"vendor":"ubuntu","product":"php8.5","name":"php8.5","label":"php8.5","ecosystem":"Ubuntu","cpePart":null,"purl":"pkg:deb/ubuntu/php8.5","purlType":"deb","versions":[{"text":"< 8.5.4-0ubuntu1.1","noFixRecorded":false,"fixedIn":null}],"versionsText":"< 8.5.4-0ubuntu1.1","eol":null,"hubHref":null},{"vendor":"php_group","product":"php","name":"PHP","label":"php","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.2.*, < 8.2.31","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.3.*, < 8.3.31","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.4.*, < 8.4.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.5.*, < 8.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.2.*, < 8.2.31 | ≥ 8.3.*, < 8.3.31 | ≥ 8.4.*, < 8.4.21 | ≥ 8.5.*, < 8.5.6","eol":null,"hubHref":"/vendor/php_group/php"},{"vendor":"php","product":"php","name":"PHP","label":"php","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 8.2.0, < 8.2.31","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.3.0, < 8.3.31","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.4.0, < 8.4.21","noFixRecorded":false,"fixedIn":null},{"text":"≥ 8.5.0, < 8.5.6","noFixRecorded":false,"fixedIn":null}],"versionsText":"≥ 8.2.0, < 8.2.31 | ≥ 8.3.0, < 8.3.31 | ≥ 8.4.0, < 8.4.21 | ≥ 8.5.0, < 8.5.6","eol":{"isEol":null,"eolDate":null,"matchMethod":"cpe","cycle":null,"product":{"name":"php","label":"PHP","category":"lang"}},"hubHref":"/vendor/php/php"}],"affectedCount":14,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm","label":"github.com/php/php-src/security/advisories/GHSA-w476-322c-wpvm","hostname":"github.com","tags":["Vendor Advisory","REPORT"]},{"url":"https://access.redhat.com/security/cve/CVE-2025-14179","label":"access.redhat.com/security/cve/CVE-2025-14179","hostname":"access.redhat.com","tags":["VDB Entry","X Refsource REDHAT"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=2468567","label":"bugzilla.redhat.com/show_bug.cgi?id=2468567","hostname":"bugzilla.redhat.com","tags":["Issue Tracking","X Refsource REDHAT"]},{"url":"https://security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14179.json","label":"security.access.redhat.com/data/csaf/v2/vex/2025/cve-2025-14179.json","hostname":"security.access.redhat.com","tags":["X Sadp Csaf Vex"]},{"url":"https://ubuntu.com/security/CVE-2025-14179","label":"ubuntu.com/security/CVE-2025-14179","hostname":"ubuntu.com","tags":["REPORT"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2025-14179","label":"www.cve.org/CVERecord?id=CVE-2025-14179","hostname":"www.cve.org","tags":["REPORT"]},{"url":"https://ubuntu.com/security/notices/USN-8336-1","label":"ubuntu.com/security/notices/USN-8336-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://ubuntu.com/security/notices/USN-8513-1","label":"ubuntu.com/security/notices/USN-8513-1","hostname":"ubuntu.com","tags":["Advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2025-14179","label":"security-tracker.debian.org/tracker/CVE-2025-14179","hostname":"security-tracker.debian.org","tags":["Advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-14179","label":"nvd.nist.gov/vuln/detail/CVE-2025-14179","hostname":"nvd.nist.gov","tags":["Oval","Advisory"]}],"lineage":{"upstream":[],"downstream":["MGASA-2026-0127","OPENSUSE-SU-2026:10747-1","USN-8513-1"],"duplicates":[],"related":["CGA-VQGH-PXCJ-WF9W","OPENSUSE-SU-2026:10747-1","USN-8336-1","USN-8513-1"]},"timeline":[{"kind":"published","date":"2026-05-10T03:51:14.596Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-07-15T01:27:20.859Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"risk":{"score":70,"level":"high","profile":"Default","thresholds":{"critical":75,"high":50,"medium":25,"low":10}},"meta":{"dataAsOf":"2026-10-20T14:33:10.106Z","stale":false,"partial":false}}