{"id":63184,"date":"2025-08-09T02:31:01","date_gmt":"2025-08-09T02:31:01","guid":{"rendered":""},"modified":"2025-10-15T16:37:16","modified_gmt":"2025-10-15T22:37:16","slug":"cve-2025-41659-codesys-control-runtime-system-pki-folder-vulnerability","status":"publish","type":"post","link":"https:\/\/www.ameeba.com\/blog\/cve-2025-41659-codesys-control-runtime-system-pki-folder-vulnerability\/","title":{"rendered":"<strong>CVE-2025-41659: CodeSys Control Runtime System PKI Folder Vulnerability<\/strong>"},"content":{"rendered":"<p><strong>Overview<\/strong><\/p>\n<p>The Common Vulnerabilities and Exposures system (CVE), a list of publicly disclosed cybersecurity vulnerabilities, has identified a significant flaw in the CODESYS Control runtime system. This vulnerability, identified as CVE-2025-41659, could allow a low-privileged attacker to remotely access the Public Key Infrastructure (PKI) folder and manipulate certificates and keys, which could lead to potential system compromise or data leakage.<br \/>\nThe flaw is particularly concerning as it affects the secure communication protocols of the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-53763-improper-access-control-in-azure-databricks-leading-to-potential-system-compromise\/\"  data-wpil-monitor-id=\"79794\">Control runtime system<\/a>, which is widely used in industries such as manufacturing, energy, water, and automation sectors. The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-4421-high-severity-vulnerability-discovered-in-lenovo-developed-code\/\"  data-wpil-monitor-id=\"70617\">vulnerability&#8217;s serious nature is underscored by its CVSS Severity<\/a> Score of 8.3, indicating a high level of severity.<\/p>\n<p><strong>Vulnerability Summary<\/strong><\/p>\n<p>CVE ID: CVE-2025-41659<br \/>\nSeverity: High (CVSS Score 8.3)<br \/>\nAttack Vector: Network<br \/>\nPrivileges Required: Low<br \/>\nUser Interaction: None<br \/>\nImpact: <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-8040-memory-safety-bugs-causing-potential-system-compromise-in-firefox-and-thunderbird\/\"  data-wpil-monitor-id=\"71216\">Potential system compromise<\/a> and data leakage<\/p>\n<p><strong>Affected Products<\/strong><\/p><div id=\"ameeb-3852645923\" class=\"ameeb-content-2 ameeb-entity-placement\"><div style=\"border-left: 4px solid #555; padding-left: 20px; margin: 48px 0; font-family: Roboto, sans-serif; color: #ffffff; line-height: 1.6; max-width: 700px;\">\r\n  <h2 style=\"margin-top: 0; font-size: 20px; font-weight: 600; display: flex; align-items: center;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"display: inline-flex; align-items: center; margin-right: 8px;\">\r\n      <img decoding=\"async\" src=\"https:\/\/www.ameeba.com\/blog\/wp-content\/uploads\/2025\/10\/Best-App-icon-Ameeba.png\" alt=\"Ameeba Chat Icon\" style=\"width: 40px; height: 40px;\" \/>\r\n    <\/a>\r\n    A new way to communicate\r\n  <\/h2>\r\n\r\n  <p style=\"margin-bottom: 12px;\">\r\n    Ameeba Chat is built on encrypted identity, not personal profiles.\r\n  <\/p>\r\n\r\n  <p style=\"margin-bottom: 16px;\">\r\n    Message, call, share files, and coordinate with identities kept separate.\r\n  <\/p>\r\n\r\n  <ul style=\"list-style: none; padding-left: 0; margin-bottom: 20px;\">\r\n    <li>\u2022 Encrypted identity<\/li>\r\n    <li>\u2022 Ameeba Chat authenticates access<\/li>\r\n    <li>\u2022 Aliases and categories<\/li>\r\n    <li>\u2022 End-to-end encrypted chat, calls, and files<\/li>\r\n    <li>\u2022 Secure notes for sensitive information<\/li>\r\n  <\/ul>\r\n\r\n  <p style=\"font-style: italic; font-weight: 600; margin-bottom: 24px;\">\r\n    Private communication, rethought.\r\n  <\/p>\r\n\r\n  <div style=\"display: flex; flex-wrap: wrap; gap: 12px;\">\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\/download\" style=\"background-color: #ffffff; color: #000000; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Download Ameeba Chat<\/a>\r\n    <a href=\"https:\/\/www.ameeba.com\/chat\" style=\"border: 1px solid #ffffff; color: #ffffff; padding: 10px 20px; text-decoration: none; border-radius: 6px; font-weight: 500;\">Learn More<\/a>\r\n  <\/div>\r\n<\/div>\r\n<\/div>\n<p>Product | Affected Versions<\/p>\n<p>CODESYS Control runtime system | All <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-55010-arbitrary-php-object-instantiation-in-kanboard-prior-to-version-1-2-47\/\"  data-wpil-monitor-id=\"78060\">versions prior<\/a> to [Insert fixed version]<\/p>\n<p><strong>How the Exploit Works<\/strong><\/p>\n<p>This exploit takes advantage of an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-44643-insecure-configuration-in-draytek-products\/\"  data-wpil-monitor-id=\"73871\">insecure configuration<\/a> in the CODESYS Control runtime system. A low-privileged attacker can send specially crafted requests to the system, allowing them to <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-47955-windows-remote-access-connection-manager-privilege-escalation-vulnerability\/\"  data-wpil-monitor-id=\"74010\">remotely access<\/a> the PKI folder. Once inside, they can read and write certificates and keys. These actions can <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-55731-sql-injection-vulnerability-in-frappe-framework-leading-to-potential-data-leakage\/\"  data-wpil-monitor-id=\"79286\">lead to sensitive data<\/a> extraction or accepting certificates as trusted. If the certificates are deleted, the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2024-12913-sql-injection-vulnerability-in-megatek-communication-system-azora-wireless-network-management\/\"  data-wpil-monitor-id=\"89989\">system defaults to unencrypted communication<\/a>.<\/p>\n<p><strong>Conceptual Example Code<\/strong><\/p><div id=\"ameeb-1502442552\" class=\"ameeb-content ameeb-entity-placement\"><div class=\"poptin-embedded\" data-id=\"f6b387694f681\"><\/div>\r\n\r\n\r\n\r\n\r\n\r\n<\/div>\n<p>The <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-52362-critical-server-side-request-forgery-vulnerability-in-phproxy\/\"  data-wpil-monitor-id=\"71217\">vulnerability could potentially be exploited with a simple HTTP request<\/a> like the following:<\/p>\n<pre><code class=\"\" data-line=\"\">GET \/PKI\/folder\/path HTTP\/1.1\nHost: vulnerable.codesys.control<\/code><\/pre>\n<p>Once the <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-25268-unauthenticated-adjacent-attacker-accessing-api-endpoint\/\"  data-wpil-monitor-id=\"77717\">attacker gains access<\/a> to the PKI folder, they can then manipulate the certificates and keys, for example:<\/p>\n<pre><code class=\"\" data-line=\"\">PUT \/PKI\/folder\/path\/certificate HTTP\/1.1\nHost: vulnerable.codesys.control\nContent-Type: application\/x-pem-file\n-----BEGIN CERTIFICATE-----\n(Malicious Certificate)\n-----END CERTIFICATE-----<\/code><\/pre>\n<p>These examples are conceptual and for illustrative purposes only. The actual exploit might require more sophisticated methods or specific conditions.<\/p>\n<p><strong>Mitigation Guidance<\/strong><\/p>\n<p>The primary mitigation <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-21120-trusting-http-permission-methods-on-the-server-side-vulnerability-in-dell-avamar\/\"  data-wpil-monitor-id=\"81532\">method for this vulnerability<\/a> is to apply the vendor&#8217;s patch. If a patch is not yet available or cannot be applied immediately, using a Web Application Firewall (WAF) or Intrusion Detection System (IDS) can provide temporary mitigation. These systems can monitor traffic and detect suspicious activities that may indicate an <a href=\"https:\/\/www.ameeba.com\/blog\/cve-2025-46414-unlimited-pin-attempts-vulnerability-in-api\/\"  data-wpil-monitor-id=\"81273\">attempted exploitation of the vulnerability<\/a>. However, these are not long-term solutions, and it&#8217;s crucial to apply the patch as soon as possible to ensure maximum security.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Overview The Common Vulnerabilities and Exposures system (CVE), a list of publicly disclosed cybersecurity vulnerabilities, has identified a significant flaw in the CODESYS Control runtime system. This vulnerability, identified as CVE-2025-41659, could allow a low-privileged attacker to remotely access the Public Key Infrastructure (PKI) folder and manipulate certificates and keys, which could lead to potential [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"om_disable_all_campaigns":false,"footnotes":""},"categories":[1],"tags":[],"vendor":[],"product":[],"attack_vector":[],"asset_type":[],"severity":[],"exploit_status":[],"class_list":["post-63184","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"aioseo_notices":[],"_links":{"self":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/63184","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/comments?post=63184"}],"version-history":[{"count":11,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/63184\/revisions"}],"predecessor-version":[{"id":82866,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/posts\/63184\/revisions\/82866"}],"wp:attachment":[{"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/media?parent=63184"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/categories?post=63184"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/tags?post=63184"},{"taxonomy":"vendor","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/vendor?post=63184"},{"taxonomy":"product","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/product?post=63184"},{"taxonomy":"attack_vector","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/attack_vector?post=63184"},{"taxonomy":"asset_type","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/asset_type?post=63184"},{"taxonomy":"severity","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/severity?post=63184"},{"taxonomy":"exploit_status","embeddable":true,"href":"https:\/\/www.ameeba.com\/blog\/wp-json\/wp\/v2\/exploit_status?post=63184"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}