Miggo Logo

CVE-2023-31136:
PostgresNIO processes unencrypted bytes from man-in-the-middle

3.7

CVSS Score
3.1

Basic Information

EPSS Score
0.42968%
Published
5/10/2023
Updated
11/6/2023
KEV Status
No
Technology
TechnologySwift

Technical Details

CVSS Vector
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:N
Package NameEcosystemVulnerable VersionsFirst Patched Version
github.com/vapor/postgres-nioswift< 1.14.21.14.2

Vulnerability Intelligence
Miggo AIMiggo AI

Miggo AIRoot Cause Analysis

The analysis focuses on the patches provided for both apple/swift-nio and vapor/postgres-nio. The key changes that directly address the vulnerability involve checking for unprocessed bytes after SSL support is received and handling this scenario by closing the connection. The functions identified are directly related to this mitigation strategy.

Vulnerable functions

Only Mi**o us*rs **n s** t*is s**tion

WAF Protection Rules

WAF Rule

### Imp**t *ny us*r o* Post*r*sNIO *onn**tin* to s*rv*rs wit* TLS *n**l** is vuln*r**l* to * m*n-in-t**-mi**l* *tt**k*r inj**tin* **ls* r*spons*s to t** *li*nt's *irst **w qu*ri*s, **spit* t** us* o* TLS **rti*i**t* v*ri*i**tion *n* *n*ryption. _T**

Reasoning

T** *n*lysis *o*us*s on t** p*t***s provi*** *or *ot* *ppl*/swi*t-nio *n* v*por/post*r*s-nio. T** k*y ***n**s t**t *ir**tly ***r*ss t** vuln*r**ility involv* ****kin* *or unpro**ss** *yt*s **t*r SSL support is r***iv** *n* **n*lin* t*is s**n*rio *y *