CVE-2019-8849: Github.com/apple/swift nio ssl SwiftNIO SSL Arbitrary Code Execution Vulnerability
CRITICALCVE-2019-8849 is a CRITICAL (CVSS 9.8) swiftnio ssl arbitrary code execution vulnerability (General Security Weakness) affecting Github.com/apple/swift nio ssl libraries in the SwiftURL ecosystem. The issue involves swiftnio ssl arbitrary code execution vulnerability. Remediation is available by upgrading affected packages to version 2.4.1.
CVE-2019-8849 at a Glance
Security Impact
CVSS: 9.8
The security impact metrics below are parsed directly from the CVSS v3.1 vector string (CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H).
How to Fix CVE-2019-8849
To remediate this vulnerability, upgrade all affected Github.com/apple/swift nio ssl dependencies to a patched release. Both direct and transitive dependencies should be checked, as frameworks or security libraries may pull in vulnerable versions transitively.
Upgrade github.com/apple/swift-nio-ssl to 2.4.1
Run the following command in your project directory to verify that all resolved dependencies use the patched release:
inspect dependencies for github.com/apple/swift-nio-ssl
How to Check if You Are Affected
To determine whether your application is affected by CVE-2019-8849, inspect your project dependencies for Github.com/apple/swift nio ssl:
inspect dependencies for github.com/apple/swift-nio-ssl
Analyze the terminal output to locate any version of Github.com/apple/swift nio ssl in your dependency tree. If any resolved version matches the vulnerable ranges listed in the table below (for example, versions earlier than 2.4.1), your application is affected.
Note: Verify declared build manifests and deployed runtime container environments.
Technical Details
Vulnerability Mechanism & Technical Analysis
This vulnerability is classified under General Security Weakness. In Github.com/apple/swift nio ssl, software state validation or input boundaries are circumvented during processing. Review the official source advisory statement below for specific affected components, classes, and reproduction details.
Source Advisory Statement
CVE-2019-8849 Affected Github.com/apple/swift nio ssl Versions
1 component(s)| Product / Package | Ecosystem | Affected Versions | Fixed Version |
|---|---|---|---|
|
github.com/apple/swift-nio-ssl
|
SwiftURL |
≥ 2.0.0
< 2.4.1
|
2.4.1
|
References
Frequently Asked Questions
What is CVE-2019-8849?
Which Github.com/apple/swift nio ssl versions are affected?
What version fixes CVE-2019-8849?
Is github.com/apple/swift-nio-ssl affected?
What is the CVSS score of CVE-2019-8849?
What CWE is associated with CVE-2019-8849?
How can I check SwiftURL dependencies for CVE-2019-8849?
Machine-readable OSV JSON
OSV v1.5 Schema
{
"schema_version" : "1.4.0",
"id" : "GHSA-frg3-gpcx-968f",
"modified" : "2025-08-04T14:23:36Z",
"published" : "2022-05-24T17:04:41Z",
"aliases" : [ "CVE-2019-8849" ],
"summary" : "SwiftNIO SSL arbitrary code execution vulnerability",
"details" : "A SwiftNIO application using TLS may be able to execute arbitrary code. The issue was addressed by signaling that an executable stack is not required. This issue is fixed in SwiftNIO SSL 2.4.1.",
"severity" : [ {
"type" : "CVSS_V3",
"score" : "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
} ],
"affected" : [ {
"package" : {
"ecosystem" : "SwiftURL",
"name" : "github.com/apple/swift-nio-ssl"
},
"ranges" : [ {
"type" : "ECOSYSTEM",
"events" : [ {
"introduced" : "2.0.0"
}, {
"fixed" : "2.4.1"
} ]
} ]
} ],
"references" : [ {
"type" : "ADVISORY",
"url" : "https://nvd.nist.gov/vuln/detail/CVE-2019-8849"
}, {
"type" : "WEB",
"url" : "https://github.com/apple/swift-nio-ssl/commit/109faef770994e71b6bafcc015e2e96b88a4af8c"
}, {
"type" : "PACKAGE",
"url" : "https://github.com/apple/swift-nio-ssl"
}, {
"type" : "WEB",
"url" : "https://github.com/apple/swift-nio-ssl/releases/tag/2.4.1"
}, {
"type" : "WEB",
"url" : "https://security.snyk.io/vuln/SNYK-COCOAPODS-SWIFTNIOSSL-8492737"
}, {
"type" : "WEB",
"url" : "https://support.apple.com/HT210772"
} ],
"database_specific" : {
"cwe_ids" : [ ],
"severity" : "CRITICAL",
"github_reviewed" : true,
"github_reviewed_at" : "2023-06-06T01:55:25Z",
"nvd_published_at" : "2019-12-18T18:15:00Z"
}
}