<?xml version='1.0' encoding='utf-8'?>
<!DOCTYPE rfc [
  <!ENTITY nbsp    "&#160;">
  <!ENTITY zwsp   "&#8203;">
  <!ENTITY nbhy   "&#8209;">
  <!ENTITY wj     "&#8288;">
]>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!-- generated by https://github.com/cabo/kramdown-rfc version 1.7.38 (Ruby 2.6.10) -->
<rfc xmlns:xi="http://www.w3.org/2001/XInclude" ipr="trust200902" docName="draft-ietf-lamps-rfc6211-update-00" category="std" consensus="true" submissionType="IETF" updates="6211" tocInclude="true" sortRefs="true" symRefs="true" version="3">
  <!-- xml2rfc v2v3 conversion 3.34.0 -->
  <front>
    <title abbrev="Update to RFC 6211">Update to the Cryptographic Message Syntax (CMS) Algorithm Identifier Protection Attribute</title>
    <seriesInfo name="Internet-Draft" value="draft-ietf-lamps-rfc6211-update-00"/>
    <author initials="R." surname="Housley" fullname="Russ Housley">
      <organization abbrev="Vigil Security">Vigil Security, LLC</organization>
      <address>
        <postal>
          <city>Herndon, VA</city>
          <country>US</country>
        </postal>
        <email>housley@vigilsec.com</email>
      </address>
    </author>
    <author initials="S." surname="Turner" fullname="Sean Turner">
      <organization abbrev="sn3rd">sn3rd llc</organization>
      <address>
        <postal>
          <city>Washington, DC</city>
          <country>US</country>
        </postal>
        <email>sean@sn3rd.com</email>
      </address>
    </author>
    <date year="2026" month="August" day="29"/>
    <workgroup>LAMPS</workgroup>
    <keyword>CMS</keyword>
    <keyword>attribute</keyword>
    <keyword>algorithm identifier</keyword>
    <abstract>
      <?line 54?>

<t>This document updates RFC 6211. It corrects an error in definition
of the id-aa-CMSAlgorithmProtection ASN.1 object identifier. The
IANA registry entry has alway been correct.</t>
    </abstract>
  </front>
  <middle>
    <?line 60?>

<section anchor="introduction">
      <name>Introduction</name>
      <t>This document corrects a mistake in <xref target="RFC6211"/>.  It corrects an error
in definition of the id-aa-CMSAlgorithmProtection ASN.1 object identifier.</t>
      <t>The IANA registry entry for this ASN.1 object identifier does not need
to be updated; it has always been correct.</t>
      <t>The authors are aware of two implementations of RFC 6211, but they did not
interoperate because one used the ASN.1 object identifier from RFC 6211 and
the other used the ASN.1 object identifier from the IANA registry.</t>
      <t>The mistakes were reported in <xref target="Err9144"/> and <xref target="Err9145"/>.</t>
      <t>This update to RFC 6211 will hopefully resolve future interoperability troubles.</t>
    </section>
    <section anchor="update-to-section-2-of-rfc-6211">
      <name>Update to Section 2 of RFC 6211</name>
      <t>OLD:</t>
      <artwork><![CDATA[
   The following object identifier identifies the algorithm protection
   attribute:

       id-aa-CMSAlgorithmProtection OBJECT IDENTIFIER ::= { iso(1)
            member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9) 52 }
]]></artwork>
      <t>NEW:</t>
      <artwork><![CDATA[
   The following object identifier identifies the algorithm protection
   attribute:

       id-aa-CMSAlgorithmProtection OBJECT IDENTIFIER ::= { iso(1)
            member-body(2) us(840) rsadsi(113549) pkcs(1) pkcs9(9)
            smime(16) aa(2) 52 }
]]></artwork>
    </section>
    <section anchor="update-to-appendix-a-of-rfc-6211">
      <name>Update to Appendix A of RFC 6211</name>
      <t>OLD:</t>
      <artwork><![CDATA[
     id-aa-cmsAlgorithmProtect OBJECT IDENTIFIER ::= {
        iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
        pkcs9(9) 52 }
]]></artwork>
      <t>NEW:</t>
      <artwork><![CDATA[
     id-aa-cmsAlgorithmProtect OBJECT IDENTIFIER ::= {
        iso(1) member-body(2) us(840) rsadsi(113549) pkcs(1)
        pkcs9(9) smime(16) aa(2) 52 }
]]></artwork>
    </section>
    <section anchor="iana-considerations">
      <name>IANA Considerations</name>
      <t>No IANA registr updates are needed. The IANA registry is correct.</t>
    </section>
    <section anchor="security-considerations">
      <name>Security Considerations</name>
      <t>The CMS attribute specified in <xref target="RFC6211"/> is designed to address the
security issue of algorithm substitutions. That is, the originator uses
one algorithm, an attacker modifies the message, and then the validator
uses a different algorithm. The specified protection is not successful
unless all implementers use the same ASN.1 object identifier for the
attribute.</t>
    </section>
  </middle>
  <back>
    <references anchor="sec-combined-references">
      <name>References</name>
      <references anchor="sec-normative-references">
        <name>Normative References</name>
        <reference anchor="RFC6211">
          <front>
            <title>Cryptographic Message Syntax (CMS) Algorithm Identifier Protection Attribute</title>
            <author fullname="J. Schaad" initials="J." surname="Schaad"/>
            <date month="April" year="2011"/>
            <abstract>
              <t>The Cryptographic Message Syntax (CMS), unlike X.509/PKIX certificates, is vulnerable to algorithm substitution attacks. In an algorithm substitution attack, the attacker changes either the algorithm being used or the parameters of the algorithm in order to change the result of a signature verification process. In X.509 certificates, the signature algorithm is protected because it is duplicated in the TBSCertificate.signature field with the proviso that the validator is to compare both fields as part of the signature validation process. This document defines a new attribute that contains a copy of the relevant algorithm identifiers so that they are protected by the signature or authentication process. [STANDARDS-TRACK]</t>
            </abstract>
          </front>
          <seriesInfo name="RFC" value="6211"/>
          <seriesInfo name="DOI" value="10.17487/RFC6211"/>
        </reference>
      </references>
      <references anchor="sec-informative-references">
        <name>Informative References</name>
        <reference anchor="Err9144" target="https://errata.rfc-editor.org/eid9144/">
          <front>
            <title>RFC 6211 Errata Report ID 9144</title>
            <author>
              <organization>RFC Editor</organization>
            </author>
            <date year="2026" month="August" day="19"/>
          </front>
        </reference>
        <reference anchor="Err9145" target="https://errata.rfc-editor.org/eid9145/">
          <front>
            <title>RFC 6211 Errata Report ID 9145</title>
            <author>
              <organization>RFC Editor</organization>
            </author>
            <date year="2026" month="August" day="19"/>
          </front>
        </reference>
      </references>
    </references>
    <?line 132?>

<section numbered="false" anchor="acknowledgments">
      <name>Acknowledgments</name>
      <t>Thanks to Paul Timmel for being the first person to spot the error in <xref target="RFC6211"/>.</t>
    </section>
  </back>
  <!-- ##markdown-source:
H4sIAArgkmoAA91WTW/bOBC981cM3IsDRI7tJkWjRYF63RR1kaZFnLZnShzZ
3EikQFJxjSD97TtD2/JHm+wWPSywAWJbFDl8b/jmDZMkEUGHElPofK6VDAjB
QpgjjN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