← Vulnerability feed

Vulnerability record · CVE-2013-1899 · published 4 April 2013

CVE-2013-1899: PostgreSQL argument injection via hyphen-prefixed database name

Postgresql · Postgresql

PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 mishandle a connection request whose database name begins with a hyphen, allowing argument injection into the server process. This can corrupt files (denial of service) and lets remote authenticated users alter configuration settings and execute arbitrary code.

6.5 CVSS 2.0 Medium EPSS 54% · top 1.0% CWE-94 · Code injection
6.5CVSS 2.0 base score
54%EPSS exploitation probability, 30 days
NoNot in CISA KEV
2Affected product versions listed by NVD
36References
16 Jun 2026Last modified by NVD

Description

Argument injection vulnerability in PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 allows remote attackers to cause a denial of service (file corruption), and allows remote authenticated users to modify configuration settings and execute arbitrary code, via a connection request using a database name that begins with a "-" (hyphen).

AV:N/AC:L/Au:S/C:P/I:P/A:P

Automated analysis

Generated by VULONE's analysis model from the NVD record, CISA KEV and EPSS data on 20 September 2026. Confidence: high.

high priorityThe flaw allows configuration tampering and arbitrary code execution by an authenticated remote user, and EPSS is very high despite no KEV listing.

What it is

PostgreSQL 9.2.x before 9.2.4, 9.1.x before 9.1.9, and 9.0.x before 9.0.13 mishandle a connection request whose database name begins with a hyphen, allowing argument injection into the server process. This can corrupt files (denial of service) and lets remote authenticated users alter configuration settings and execute arbitrary code.

Impact

An attacker can corrupt server files to cause a denial of service, and an authenticated attacker can modify PostgreSQL configuration and execute arbitrary code on the database host.

Attack surface

Reached over the network via a crafted connection request containing a database name starting with "-"; the CVSS vector (AV:N/AC:L/Au:S) indicates network access with low complexity but requires authentication, and no user interaction is needed.

Exploitation

Not listed in CISA KEV and no exploit tags appear in the references, but EPSS is high (0.54312, 98.9th percentile), indicating elevated likelihood of exploitation activity.

What to do

  • Upgrade to PostgreSQL 9.2.4, 9.1.9, or 9.0.13 (or later) as applicable.
  • Apply the vendor and distribution advisories (PostgreSQL, Ubuntu USN-1789-1, Debian DSA-2658, Fedora, openSUSE, Mandriva, Apple) for packaged builds.
  • Restrict network access to PostgreSQL ports to trusted hosts and require strong authentication to limit the authenticated attack path.
  • Audit database roles and connection privileges, removing unnecessary login rights that enable the authenticated code execution path.

Detection

  • Monitor PostgreSQL connection logs for database names beginning with a hyphen or otherwise malformed connection parameters.
  • Alert on unexpected changes to postgresql.conf or other server configuration files.
  • Watch for unexpected child processes or command execution spawned by the PostgreSQL server process.
  • Check for file corruption or integrity failures in PostgreSQL data directories.

This assessment is produced automatically and is not human-reviewed. Verify against the vendor advisory before acting on it.

Affected products

2 vulnerable configurations from NVD's CPE data, grouped by vendor and product.

References

LinkTags
http://lists.apple.com/archives/security-announce/2013/Sep/msg00002.html
http://lists.apple.com/archives/security-announce/2013/Sep/msg00004.html
http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101519.html
http://lists.fedoraproject.org/pipermail/package-announce/2013-April/102806.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00007.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00008.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00011.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00012.html
http://support.apple.com/kb/HT5880
http://support.apple.com/kb/HT5892
http://www.debian.org/security/2013/dsa-2658
http://www.mandriva.com/security/advisories?name=MDVSA-2013:142
http://www.postgresql.org/about/news/1456/ Vendor Advisory
http://www.postgresql.org/docs/current/static/release-9-0-13.html
http://www.postgresql.org/docs/current/static/release-9-1-9.html
http://www.postgresql.org/docs/current/static/release-9-2-4.html
http://www.postgresql.org/support/security/faq/2013-04-04/ Vendor Advisory
http://www.ubuntu.com/usn/USN-1789-1
http://lists.apple.com/archives/security-announce/2013/Sep/msg00002.html
http://lists.apple.com/archives/security-announce/2013/Sep/msg00004.html
http://lists.fedoraproject.org/pipermail/package-announce/2013-April/101519.html
http://lists.fedoraproject.org/pipermail/package-announce/2013-April/102806.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00007.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00008.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00011.html
http://lists.opensuse.org/opensuse-security-announce/2013-04/msg00012.html
http://support.apple.com/kb/HT5880
http://support.apple.com/kb/HT5892
http://www.debian.org/security/2013/dsa-2658
http://www.mandriva.com/security/advisories?name=MDVSA-2013:142
http://www.postgresql.org/about/news/1456/ Vendor Advisory
http://www.postgresql.org/docs/current/static/release-9-0-13.html
http://www.postgresql.org/docs/current/static/release-9-1-9.html
http://www.postgresql.org/docs/current/static/release-9-2-4.html
http://www.postgresql.org/support/security/faq/2013-04-04/ Vendor Advisory
http://www.ubuntu.com/usn/USN-1789-1

Track CVE-2013-1899 inside VULONE

Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.

Start free Open in platform

Related vulnerabilities

Same products first, then exploited flaws of the same weakness class.

9.8CVE-2020-11651SaltStack Salt master authentication bypass in ClearFuncsSaltStack Salt before 2019.2.4 and 3000 before 3000.2 fails to properly validate method calls in the salt-master ClearFuncs class, allowing remote un…KEVEPSS 97%analysed9.8CVE-2020-7247OpenSMTPD MAIL FROM command injection allows remote root code executionOpenSMTPD 6.6, as shipped in OpenBSD 6.6 and other products, mishandles input validation in smtp_mailaddr in smtp_session.c, returning an incorrect v…KEVEPSS 99%analysed9.8CVE-2019-11043PHP-FPM buffer overflow enables remote code executionPHP-FPM in certain configurations writes past allocated buffers into FCGI protocol data space, an out-of-bounds write (CWE-787, CWE-120). It affects …KEVEPSS 100%analysed9.8CVE-2019-16928Exim heap buffer overflow in string_vformat via long EHLO commandExim 4.92 through 4.92.2 contains a heap-based buffer overflow in string_vformat in string.c triggered by a long EHLO command, allowing remote code e…KEVEPSS 42%analysed9.8CVE-2019-10149Exim MTA improper recipient validation leads to remote command executionExim versions 4.87 through 4.91 fail to properly validate recipient addresses in the deliver_message() function in /src/deliver.c, allowing command i…KEVEPSS 100%analysed9.8CVE-2018-6789Exim SMTP base64d buffer overflow allows remote code executionExim before 4.90.1 contains a buffer overflow in the base64d function of its SMTP listener. A handcrafted message can trigger the overflow, and the f…KEVEPSS 82%analysed9.8CVE-2016-8735Apache Tomcat JmxRemoteLifecycleListener remote code executionApache Tomcat's JmxRemoteLifecycleListener was not updated to match the Oracle CVE-2016-3427 credential-type fix, leaving a deserialization weakness …KEVEPSS 90%analysed9.8CVE-2016-3427Oracle Java SE JMX Improper Access Control VulnerabilityCVE-2016-3427 is an unspecified vulnerability in Oracle Java SE 6u113, 7u99, 8u77, Java SE Embedded 8u77, and JRockit R28.3.9, reached through vector…KEVEPSS 92%analysed

Source: NIST National Vulnerability Database (record CVE-2013-1899), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.