flawopen.com/घटनाएं (Incidents)/PostgreSQL CVE-2025-1094

CVE-2025-1094: जब सुरक्षा के लिए बना एस्केपिंग फ़ंक्शन ही सुरक्षा भेद्यता बन गया

High Severity CWE-89: SQL Injection Disclosed February 2025
सरल भाषा में समझें (ELI5)

कल्पना कीजिए कि एक अनुवादक का काम आपके बोले हर शब्द को उद्धरण चिह्नों (quotes) में बंद करना है ताकि कोई उसे आदेश न समझ ले। किसी को पता चलता है कि यदि आप किसी अनजान लिपि का शब्द बोलते हैं, तो वह भ्रमित होकर अंतिम उद्धरण चिह्न लगाना भूल जाता है। आपकी कही बात उद्धरण से बाहर आकर सीधे सिस्टम का आदेश बन जाती है।

The lessons that actually transfer

FAQ

Does this mean escaping functions can't be trusted?

It means they are ordinary software with ordinary bugs, and that relying on them puts a correctness burden in a place where a single mistake is exploitable. Parameterised queries avoid the burden entirely, which is why they remain the primary recommendation.

Was my application vulnerable if I use an ORM?

Most ORMs and modern drivers use the extended query protocol with bound parameters rather than libpq's escaping helpers, which sidesteps the flaw. The exposure was concentrated in code that explicitly called the escape functions or shelled out to psql. Patching the client library is still the correct action.

Which versions fixed it?

PostgreSQL 17.3, 16.7, 15.11, 14.16 and 13.19, released on 13 February 2025.

Related reading

स्रोत और आधिकारिक एडवाइजरी